package com.example.myapplication;

public class Transaction {

    private int transactionId;
    private String productName;
    private int buyerId;
    private int sellerId;
    private String status;
    private String date;

    // 构造函数
    public Transaction() {}

    public Transaction(int transactionId, String productName, int buyerId, int sellerId, String status, String date) {
        this.transactionId = transactionId;
        this.productName = productName;
        this.buyerId = buyerId;
        this.sellerId = sellerId;
        this.status = status;
        this.date = date;
    }

    // Getter和Setter方法
    public int getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(int transactionId) {
        this.transactionId = transactionId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(int buyerId) {
        this.buyerId = buyerId;
    }

    public int getSellerId() {
        return sellerId;
    }

    public void setSellerId(int sellerId) {
        this.sellerId = sellerId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }
}
